/*
 * Main Custodian menu
 * Vic.Sorbi
 * 15.05.2011
 */
package ganga.custodian;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

/**
 * This activity aimed to be a main user menu screen
 * @author Apocrypha
 *
 */
/*
 try to commit Tanya
 */

public class MainMenu extends Activity {
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        //Some example behaviour
        Button alarmButton = (Button)findViewById(R.id.alarmButton);
        alarmButton.setOnClickListener(
        		new View.OnClickListener(){
        			public void onClick(View view){
        				setResult(RESULT_CANCELED, null);
        				finish();}
        		});
    }
    public void exitButton_Click(View v){
    	    	finish();
    }
    public void  Click_Chart(View v){
    	Intent i = new Intent(MainMenu.this,ganga.custodian.sandbox.plotActivity.class);
    	startActivity(i);	
    }
    public void SensorsView(View v1){
    	Intent i1 = new Intent(MainMenu.this,ganga.custodian.sandbox.SensorsParam.class);
    	startActivity(i1);
    }

}//MainMenu

//The application Context is the central location for all top-level application functionality.
//Retrieving the Application Context
//Context context = getApplicationContext();